import axios from 'axios';
import { loginreq, req } from './axiosFun';
export const faultList = (params) => { return req("post", "/api/fault/list/page", params) };

// 用户管理-保存
export const faultSave = (params) => { return req("post", "/api/fault/save", params) };
// 用户管理-编辑
export const faultEdit = (params) => { return req("post", "/api/fault/edit", params) };

// 用户管理-删除用户
export const faultDelete = (params) => { return axios.delete("/api/fault/del/" + params).then(res => res.data) };
// 用户管理-修改状态
export const faultStatus = (params) => { return req("post", "/api/fault/edit", params) };
// 用户管理-批量删除
export const faultBatchDel = (params) => { return req("post", "/api/fault/del/batch", params) };
